<!DOCTYPE html PUBLIC "//W3C//DTD XHTML 1.0 Transition//EN"
        "http://www.w3.org/TR/xhtml1/DT/xhtml1-transitional.dtd">
<html>
<head>
    <title>
        Django Bookmarks | {% block title %}{% endblock %}
    </title>
    <link rel="stylesheet" href="/site_media/style.css"
          type="text/css" />
    <script type="text/javascript"
            src="/site_media/jquery.js"></script>
    <script type="text/javascript"
            src="/site_media/csrf_exempt.js"></script>
    {% block external %}{% endblock %}
</head>
<body>
    <div id="nav">
        <a href="/">home</a> |
        {% if user.is_authenticated %}
            <a href="/save/">Bookmark It!</a> |
            <a href="/search/">search</a> |
            <a href="/user/{{ user.username }}/">
                {{ user.username }}</a> |
            (<a href="/logout">logout</a>)
        {% else %}
            <a href="/login/">login</a> |
            <a href="/register/">register</a>
        {% endif %}
    </div>
    <h1>{% block head %}{% endblock %}</h1>
    {% block content %}{% endblock %}

</body>
</html>